'use strict';
//

var app = angular.module('app')
    .config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
        // 默认地址
        $urlRouterProvider.otherwise('/access/login');
        // 状态配置
        $stateProvider
            .state('main', {
                abstract: true,
                url: '',
                templateUrl: 'src/tpl/app.html'
            })
            .state('access', {
                url: '/access',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('access.login', {
                url: '/login',
                templateUrl: 'src/app/sys/login/login.html',
                controller: 'loginController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/login/loginController.js');
                    }]
                }
            })

            .state('main.sys', {
                url: '/sys',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            }) // 用户
            .state('main.sys.userfc', {
                url: '/user',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.sys.userfc.list', {
                url: '/list',
                templateUrl: 'src/app/sys/user/user.html',
                controller: 'userController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/user/userController.js');
                    }]
                }
            })

            .state('main.tpl', {
                url: '/tpl',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.tpl.homePage', {
                url: '/homePage',
                templateUrl: 'src/tpl/homePage.html',
                // controller: 'userController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
//                        return uiLoad.load('src/app/sys/user/userController.js');
                    }]
                }
            })

            .state('main.sys.userfc.create', {
                url: '/create',
                templateUrl: 'src/app/sys/user/update.html',
                controller: 'userUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/user/updateController.js');
                    }]
                }
            })
            .state('main.sys.userfc.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/sys/user/update.html',
                controller: 'userUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/user/updateController.js');
                    }]
                }
            })

            //修改登录密码
            .state('main.sys.userfc.updatePassWord', {
                url: '/user',
                templateUrl: 'src/app/sys/user/updatePassWord.html',
                controller: 'sysUserController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/user/updatePassWordController.js');
                    }]
                }
            })

            // 修改头像
            .state('main.sys.userfc.updateFace', {
                url: '/updateFace/{id}?params',
                templateUrl: 'src/app/sys/user/updateFace.html',
                controller: 'updateFaceController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/user/updateFaceController.js');
                    }]
                }
            })

            // 部门
            .state('main.sys.dept', {
                url: '/dept',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.sys.dept.list', {
                url: '/list',
                templateUrl: 'src/app/sys/dept/dept.html',
                controller: 'deptController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/dept/deptController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.dept.create', {
                url: '/create',
                templateUrl: 'src/app/sys/dept/update.html',
                controller: 'deptUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/dept/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.dept.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/sys/dept/update.html',
                controller: 'deptUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/dept/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 菜单
            .state('main.sys.menu', {
                url: '/menu',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.sys.menu.list', {
                url: '/list',
                templateUrl: 'src/app/sys/menu/menu.html',
                controller: 'menuController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/menu/menuController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.menu.create', {
                url: '/create',
                templateUrl: 'src/app/sys/menu/update.html',
                controller: 'menuUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/menu/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.menu.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/sys/menu/update.html',
                controller: 'menuUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/menu/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 角色
            .state('main.sys.role', {
                url: '/role',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.sys.role.list', {
                url: '/list',
                templateUrl: 'src/app/sys/role/role.html',
                controller: 'roleController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/role/roleController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.role.create', {
                url: '/create',
                templateUrl: 'src/app/sys/role/update.html',
                controller: 'roleUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/role/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.role.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/sys/role/update.html',
                controller: 'roleUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/role/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 会话
            .state('main.sys.role.permission', {
                url: '/permission/{id}?params',
                templateUrl: 'src/app/sys/role/treeController.html',
                controller: 'treeController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/role/treeController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.role.func', {
                url: '/func/{id}?params',
                templateUrl: 'src/app/sys/role/func.html',
                controller: 'funcController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/role/funcController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.session', {
                url: '/session',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.sys.session.list', {
                url: '/list',
                templateUrl: 'src/app/sys/session/session.html',
                controller: 'sessionController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/session/sessionController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 字典
            .state('main.sys.dic', {
                url: '/dic',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.sys.dic.list', {
                url: '/list',
                templateUrl: 'src/app/sys/dic/dic.html',
                controller: 'dicController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/dic/dicController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.dic.create', {
                url: '/create',
                templateUrl: 'src/app/sys/dic/update.html',
                controller: 'dicUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/dic/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.dic.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/sys/dic/update.html',
                controller: 'dicUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/dic/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 参数
            .state('main.sys.param', {
                url: '/param',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.sys.param.list', {
                url: '/list',
                templateUrl: 'src/app/sys/param/param.html',
                controller: 'paramController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/param/paramController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.param.create', {
                url: '/create',
                templateUrl: 'src/app/sys/param/update.html',
                controller: 'paramUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/param/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.param.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/sys/param/update.html',
                controller: 'paramUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/param/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 调度
            .state('main.task', {
                url: '/task',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.task.group', {
                url: '/group',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.task.group.list', {
                url: '/list',
                templateUrl: 'src/app/task/group/group.html',
                controller: 'taskGroupController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/task/group/groupController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.task.group.create', {
                url: '/create',
                templateUrl: 'src/app/task/group/update.html',
                controller: 'groupUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/task/group/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.task.group.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/task/group/update.html',
                controller: 'groupUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/task/group/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.task.scheduler', {
                url: '/scheduler',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.task.scheduler.list', {
                url: '/list',
                templateUrl: 'src/app/task/scheduler/scheduler.html',
                controller: 'taskSchedulerController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/task/scheduler/schedulerController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.task.scheduler.create', {
                url: '/create/{groupId}?params',
                templateUrl: 'src/app/task/scheduler/update.html',
                controller: 'schedulerUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/task/scheduler/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.task.scheduler.update', {
                url: '/update/{id}/{groupId}/?params',
                templateUrl: 'src/app/task/scheduler/update.html',
                controller: 'schedulerUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/task/scheduler/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.task.scheduled', {
                url: '/scheduled',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.task.scheduled.list', {
                url: '/list',
                templateUrl: 'src/app/task/scheduled/scheduled.html',
                controller: 'taskScheduledController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/task/scheduled/scheduledController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.task.log', {
                url: '/log',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.task.log.list', {
                url: '/list',
                templateUrl: 'src/app/task/scheduled/log.html',
                controller: 'scheduledLogController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/task/scheduled/logController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.biz', {
                url: '/biz',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.biz.advertise', {
                url: '/advertise',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.biz.advertise.list', {
                url: '/list',
                templateUrl: 'src/app/biz/advertise/advertise.html',
                controller: 'advertiseController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/advertise/advertiseController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.biz.platfrom', {
                url: '/platfrom',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.biz.platfrom.list', {
                url: '/list',
                templateUrl: 'src/app/biz/supplier/platfromInfo.html',
                controller: 'platfromInfoController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/supplier/platfromInfoController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.biz.adSlot', {
                url: '/adSlot',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.biz.adSlot.list', {
                url: '/list',
                templateUrl: 'src/app/biz/supplier/adSlot.html',
                controller: 'adSlotController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/supplier/adSlotController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.biz.adSlot.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/biz/supplier/detail.html',
                controller: 'detailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/supplier/detailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.user.userSupply', {
                url: '/userSupply',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.user.userSupply.list', {
                url: '/list',
                templateUrl: 'src/app/biz/supplier/userSupply.html',
                controller: 'userSupplyController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/supplier/userSupplyController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.user.userSupply.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/biz/supplier/userSupplyDetail.html',
                controller: 'userSupplyDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/supplier/userSupplyDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.user.userAdverts', {
                url: '/userAdverts',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.user.userAdverts.list', {
                url: '/list',
                templateUrl: 'src/app/biz/advertise/userAdverts.html',
                controller: 'userAdvertsController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/advertise/userAdvertsController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.user.userAdverts.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/biz/advertise/userAdvertsDetail.html',
                controller: 'userAdvertsDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/advertise/userAdvertsDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 资质审核开始
            .state('main.user.qualificationAudit', {
                url: '/qualification',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.user.qualificationAudit.list', {
                url: '/list',
                templateUrl: 'src/app/biz/qualification/qualifications.html',
                controller: 'qualificationsController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/qualification/qualificationsController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            //资质审核结束
            .state('main.finance', {
                url: '/finance',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            //应付账款
            .state('main.finance.extractApply', {
                url: '/extractApply',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.finance.extractApply.list', {
                url: '/list',
                templateUrl: 'src/app/finance/accountGive/extractApply.html',
                controller: 'extractApplyController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/accountGive/extractApplyController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.finance.extractApply.create', {
                url: '/create',
                templateUrl: 'src/app/finance/accountGive/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/accountGive/updateController.js');
                    }]
                }
            })
            .state('main.finance.extractApply.read', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/finance/accountGive/detail.html',
                controller: 'detailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/accountGive/detailController.js');
                    }]
                }
            })
            .state('main.finance.adjustAcc', {
                url: '/adjustAcc',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.finance.adjustAcc.list', {
                url: '/list',
                templateUrl: 'src/app/finance/adjustAcc/adjustAcc.html',
                controller: 'advertiseController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/adjustAcc/adjustAccController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.finance.accountRec', {
                url: '/accountRec',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.finance.accountRec.list', {
                url: '/list',
                templateUrl: 'src/app/finance/accountRec/accountRec.html',
                controller: 'accountRecController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/accountRec/accountRecController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.finance.accountRec.detail', {
                url: '/detail?{id}&{iden}',
                templateUrl: 'src/app/finance/accountRec/accountRecDetail.html',
                controller: 'accountRecDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/accountRec/accountRecDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.finance.accountRec.create', {
                url: '/create',
                templateUrl: 'src/app/finance/accountRec/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/accountRec/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.finance.userWallet', {
                url: '/userWallet',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.finance.userWallet.list', {
                url: '/list',
                templateUrl: 'src/app/finance/userWallet/userWallet.html',
                controller: 'userWalletController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/userWallet/userWalletController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.finance.tradeFlow', {
                url: '/tradeFlow',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.finance.tradeFlow.list', {
                url: '/list?{userIds}',
                templateUrl: 'src/app/finance/userWallet/tradeFlow.html',
                controller: 'tradeFlowController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/finance/userWallet/tradeFlowController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.statsData', {
                url: '/statsData',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.statsData.readTodayDatum', {
                url: '/readTodayDatum',
                templateUrl: 'src/app/sys/statsData/loadPage.html',
                controller: 'statsDataForTodayController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/statsData/statsDataForTodayController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.statsData.readHistoryDatum', {
                url: '/readHistoryDatum',
                templateUrl: 'src/app/sys/statsData/statsDataForHistory.html',
                controller: 'statsDataForHistoryController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/statsData/statsDataForHistoryController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.statsData.readSummaryDatum', {
                url: '/readSummaryDatum',
                templateUrl: 'src/app/sys/statsData/statsDataForSummary.html',
                controller: 'statsDataForSummaryController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/statsData/statsDataForSummaryController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.statsData.companyLaunch', {
                url: '/companyLaunch',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.statsData.companyLaunch.list', {
                url: '/list',
                templateUrl: 'src/app/sys/statsData/statsDataForCompanyLaunch.html',
                controller: 'statsDataForCompanyLaunchController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/statsData/statsDataForCompanyLaunchController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.statsData.companyLaunch.backCashDetail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/sys/statsData/backCashDetail.html',
                controller: 'backCashDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/statsData/backCashDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.statsData.planStatistics', {
                url: '/planStatistics',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.statsData.planStatistics.readList', {
                url: '/readPlanList',
                templateUrl: 'src/app/sys/statsData/planStatistics.html',
                controller: 'planStatisticsController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/statsData/planStatisticsController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.finance.fundFlow', {
                url: '/fundFlow',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.finance.fundFlow.pageList', {
                url: '/pageList',
                templateUrl: 'src/app/core/fundFlow/fundFlowList.html',
                controller: 'fundFlowController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/core/fundFlow/fundFlowController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.user', {
                url: '/user',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.user.registerUser', {
                url: '/registerUser',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.user.registerUser.userList', {
                url: '/list',
                templateUrl: 'src/app/user/registerUser/registerUser.html',
                controller: 'registerUserController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/user/registerUser/registerUserController.js');
                    }]
                }
            })
            .state('main.user.registerUser.editPassword', {
                url: '/editPassword/{userId}?params',
                templateUrl: 'src/app/user/registerUser/editPassword.html',
                controller: 'editPasswordController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/user/registerUser/editPasswordController.js');
                    }]
                }
            })
            .state('main.biz.adDetail', {
                url: '/adDetail',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.biz.adDetail.adList', {
                url: '/adList',
                templateUrl: 'src/app/launchplan/adList.html',
                controller: 'adListController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/launchplan/adListController.js');
                    }]
                }
            })
            .state('main.biz.launchplan', {
                url: '/launchplan',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.biz.launchplan.planList', {
                url: '/list',
                templateUrl: 'src/app/launchplan/launchPlan.html',
                controller: 'launchPlanController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/launchplan/launchPlanController.js');
                    }]
                }
            })
            .state('main.biz.launchplan.planDetail', {
                url: '/detail/{adPlanId}?params',
                templateUrl: 'src/app/launchplan/launchPlanDetail.html',
                controller: 'launchPlanDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/launchplan/launchPlanDetailController.js');
                    }]
                }
            })
            .state('main.biz.launchplan.setTactics', {
                url: '/setTactics/{adPlanId}/{planName}?params',
                templateUrl: 'src/app/launchplan/setStrate.html',
                controller: 'setStrateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/launchplan/setStrateController.js');
                    }]
                }
            })

            //充值规则
            .state('main.biz.rechargeRule', {
                url: '/rechargeRule',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.biz.rechargeRule.list', {
                url: '/list',
                templateUrl: 'src/app/core/rule/RechargeRule.html',
                controller: 'rechargeRuleController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/core/rule/RechargeRuleController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.biz.rechargeRule.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/core/rule/detail.html',
                controller: 'detailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/core/rule/detailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.biz.rechargeRule.create', {
                url: '/create',
                templateUrl: 'src/app/core/rule/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/core/rule/updateController.js');
                    }]
                }
            })
            .state('main.biz.rechargeRule.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/core/rule/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/core/rule/updateController.js');
                    }]
                }
            })

            .state('main.funScenes', {
                url: '/funScenes',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.funScenes.activity', {
                url: '/activity',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.funScenes.activity.list', {
                url: '/list',
                templateUrl: 'src/app/funscenes/activity/sceneActivity.html',
                controller: 'sceneActivityController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/activity/sceneActivityController.js');
                    }]
                }
            })
            .state('main.funScenes.activity.create', {
                url: '/create',
                templateUrl: 'src/app/funscenes/activity/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/activity/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.funScenes.activity.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/funscenes/activity/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/activity/updateController.js');
                    }]
                }
            })
            .state('main.funScenes.activity.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/funscenes/activity/activityDetail.html',
                controller: 'activityDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/activity/activityDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.funScenes.route', {
                url: '/route',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.funScenes.route.list', {
                url: '/list',
                templateUrl: 'src/app/funscenes/route/sceneRoute.html',
                controller: 'sceneRouteController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/route/sceneRouteController.js');
                    }]
                }
            })
            .state('main.funScenes.route.create', {
                url: '/create',
                templateUrl: 'src/app/funscenes/route/update.html',
                controller: 'routeUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/route/routeUpdateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.funScenes.route.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/funscenes/route/update.html',
                controller: 'routeUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/route/routeUpdateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            //趣场景任务
            .state('main.funScenes.task', {
                url: '/task',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.funScenes.task.list', {
                url: '/list',
                templateUrl: 'src/app/funscenes/task/sceneTask.html',
                controller: 'sceneTaskController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/task/sceneTaskController.js');
                    }]
                }
            })
            .state('main.funScenes.task.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/funscenes/task/taskDetail.html',
                controller: 'taskDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/task/taskDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.funScenes.task.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/funscenes/task/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/task/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.funScenes.task.create', {
                url: '/create',
                templateUrl: 'src/app/funscenes/task/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/task/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            //趣场景报名
            .state('main.funScenes.apply', {
                url: '/apply',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.funScenes.apply.list', {
                url: '/list',
                templateUrl: 'src/app/funscenes/apply/sceneApply.html',
                controller: 'sceneApplyController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/funscenes/apply/sceneApplyController.js');
                    }]
                }
            })

            .state('main.platform', {
                url: '/platform',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.platform.banner', {
                url: '/banner',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.platform.banner.list', {
                url: '/list',
                templateUrl: 'src/app/platform/banner/banner.html',
                controller: 'bannerController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/platform/banner/bannerController.js');
                    }]
                }
            })
            .state('main.platform.banner.update', {
                url: '/update/{id}/{platformSource}?params',
                templateUrl: 'src/app/platform/banner/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/platform/banner/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.platform.banner.create', {
                url: '/create/{id}?params',
                templateUrl: 'src/app/platform/banner/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/platform/banner/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.hui.sets', {
                url: '/sets',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            //平台设置列表
            .state('main.hui.sets.list', {
                url: '/list',
                templateUrl: 'src/app/platform/platformSet/platformSet.html',
                controller: 'platformSetController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/platform/platformSet/platformSetController.js');
                    }]
                }
            })

            .state('main.plat.reptile', {
                url: '/reptile',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            //爬虫开关列表
            .state('main.plat.reptile.list', {
                url: '/list',
                templateUrl: 'src/app/hui/manageInformation/reptileFlag/reptile.html',
                controller: 'reptileController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/manageInformation/reptileFlag/reptileController.js');
                    }]
                }
            })

            //爬虫参数管理列表
            .state('main.plat.reptileinfo', {
                url: '/reptileinfo',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.plat.reptileinfo.list', {
                url: '/list',
                templateUrl: 'src/app/hui/reptileinfomanage/reptileinfoList.html',
                controller: 'reptileinfoController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/reptileinfomanage/reptileinfoController.js');
                    }]
                }
            })
            .state('main.plat.reptileinfo.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/reptileinfomanage/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/reptileinfomanage/updateController.js');
                    }]
                }
            })
            .state('main.plat.reptileinfo.create', {
                url: '/create',
                templateUrl: 'src/app/hui/reptileinfomanage/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/reptileinfomanage/updateController.js');
                    }]
                }
            })

            //资讯平台管理
            .state('main.plat.platInfo', {
                url: '/platInfo',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 资讯平台管理页面列表展示
            .state('main.plat.platInfo.list', {
                url: '/list',
                templateUrl: 'src/app/hui/platInfoManage/platInfo/platInfo.html',
                controller: 'platInfoController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platInfoManage/platInfo/platInfoController.js');
                    }]
                }
            })

            // 资讯平台管理页面列表修改
            .state('main.plat.platInfo.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/platInfoManage/platInfo/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platInfoManage/platInfo/updateController.js');
                    }]
                }
            })

            // 资讯平台管理页面列表添加
            .state('main.plat.platInfo.add', {
                url: '/add',
                templateUrl: 'src/app/hui/platInfoManage/platInfo/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platInfoManage/platInfo/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // uc路由页面跳转
            .state('main.uc', {
                url: '/uc',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.uc.banner', {
                url: '/banner',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // uc用户管理的页面列表展示
            .state('main.uc.banner.list', {
                url: '/list',
                templateUrl: 'src/app/uc/banner/userList.html',
                controller: 'userCenterController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/uc/banner/userCenterController.js');
                    }]
                }
            })

            // uc用户管理的页面列表修改
            .state('main.uc.banner.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/uc/banner/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/uc/banner/updateController.js');
                    }]
                }
            })

            // 慧驿站用户数统计
            .state('main.uc.statistics', {
                url: '/statistics',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 慧驿站用户数统计列表
            .state('main.uc.statistics.readPlatCount', {
                url: '/readPlatCount',
                templateUrl: 'src/app/uc/statistics/statisticsList.html',
                controller: 'statisticsController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/uc/statistics/statisticsController.js');
                    }]
                }
            })
            // 展示驿站精选统计数
            .state('main.uc.statistics.readCsCount', {
                url: '/readCsCount',
                templateUrl: 'src/app/uc/statistics/statisticsList.html',
                controller: 'statisticsController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/uc/statistics/statisticsController.js');
                    }]
                }
            })
            // 展示帖子火热程度
            .state('main.uc.statistics.readFpCount', {
                url: '/readFpCount',
                templateUrl: 'src/app/uc/statistics/statisticsList.html',
                controller: 'statisticsController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/uc/statistics/statisticsController.js');
                    }]
                }
            })

            .state('main.hui', {
                url: '/hui',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.hui.module', {
                url: '/module',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 查询用户帖子的列表页面
            .state('main.uc.banner.postList', {
                url: '/postList/{mobile}?params',
                templateUrl: 'src/app/uc/banner/postList.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/uc/banner/updateController.js');
                    }]
                }
            })

            // 模块管理页面列表展示
            .state('main.hui.module.list', {
                url: '/list',
                templateUrl: 'src/app/hui/messageSets/module/module.html',
                controller: 'moduleController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/messageSets/module/moduleController.js');
                    }]
                }
            })

            // 模块管理页面列表修改
            .state('main.hui.module.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/messageSets/module/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/messageSets/module/updateController.js');
                    }]
                }
            })

            // 模块管理页面列表添加
            .state('main.hui.module.add', {
                url: '/add',
                templateUrl: 'src/app/hui/messageSets/module/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/messageSets/module/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.hui.menu', {
                url: '/menu',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 菜单管理页面列表展示
            .state('main.hui.menu.list', {
                url: '/list',
                templateUrl: 'src/app/hui/messageSets/menu/menu.html',
                controller: 'huimenuController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/messageSets/menu/menuController.js');
                    }]
                }
            })

            // 菜单管理页面列表修改
            .state('main.hui.menu.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/messageSets/menu/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/messageSets/menu/updateController.js');
                    }]
                }
            })
            // 菜单管理页面列表添加
            .state('main.hui.menu.add', {
                url: '/add',
                templateUrl: 'src/app/hui/messageSets/menu/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/messageSets/menu/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 资讯分类管理
            .state('main.plat', {
                url: '/plat',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 资讯分类管理
            .state('main.plat.information', {
                url: '/informationType',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 资讯列表展示
            .state('main.plat.information.list', {
                url: '/list',
                templateUrl: 'src/app/hui/informationType/informationList.html',
                controller: 'informationController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/informationType/informationController.js');
                    }]
                }
            })
            // 资讯模板添加
            .state('main.plat.information.create', {
                url: '/create',
                templateUrl: 'src/app/hui/informationType/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/informationType/updateController.js');
                    }]
                }
            })
            // 资讯修改
            .state('main.plat.information.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/informationType/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/informationType/updateController.js');
                    }]
                }
            })

            //平台绑定信息
            .state('main.uc.bind', {
                url: '/bindUC',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // uc用户管理的页面列表展示
            .state('main.uc.bind.list', {
                url: '/list',
                templateUrl: 'src/app/uc/bindUC/bindList.html',
                controller: 'bindController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/uc/bindUC/bindController.js');
                    }]
                }
            })

            // userbind的页面列表修改
            .state('main.uc.bind.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/uc/bindUC/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/uc/bindUC/updateController.js');
                    }]
                }
            })

            //第三方平台管理
            .state('main.hui.channel', {
                url: '/channel',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 渠道表管理的页面列表展示
            .state('main.hui.channel.list', {
                url: '/list',
                templateUrl: 'src/app/thirdPlatform/channel/channel.html',
                controller: 'channelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/thirdPlatform/channel/channelController.js');
                    }]
                }
            })

            // 渠道管理表的编辑
            .state('main.hui.channel.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/thirdPlatform/channel/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/thirdPlatform/channel/updateController.js');
                    }]
                }
            })

            // 渠道管理表的添加
            .state('main.hui.channel.create', {
                url: '/create',
                templateUrl: 'src/app/thirdPlatform/channel/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/thirdPlatform/channel/updateController.js');
                    }]
                }
            })

            //慧驿站订阅管理
            .state('main.hui.subscribe', {
                url: '/subscribe',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.hui.subscribe.list', {
                url: '/list',
                templateUrl: 'src/app/hui/subscribe/subscribeList.html',
                controller: 'subscribeController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/subscribe/subscribeController.js');
                    }]
                }
            })
            .state('main.hui.subscribe.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/hui/subscribe/subscribeDetail.html',
                controller: 'subscribeDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/subscribe/subscribeDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.hui.subscribe.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/subscribe/subscribeupdate.html',
                controller: 'subscribeupdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/subscribe/subscribeupdateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.hui.subscribe.create', {
                url: '/create',
                templateUrl: 'src/app/hui/subscribe/subscribeupdate.html',
                controller: 'subscribeupdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/subscribe/subscribeupdateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.hui.hMenu', {
                url: '/hMenu',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.hui.hMenu.list', {
                url: '/list',
                templateUrl: 'src/app/hui/mymenu/myMenu.html',
                controller: 'myMenuController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/mymenu/myMenuController.js');
                    }]
                }
            })
            .state('main.hui.hFunc', {
                url: '/hFunc',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.hui.hFunc.list', {
                url: '/list',
                templateUrl: 'src/app/hui/func/func.html',
                controller: 'funcController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/func/funcController.js');
                    }]
                }
            })

            //慧驿站平台消息管理
            .state('main.hui.backmessage', {
                url: '/backmessage',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.hui.backmessage.list', {
                url: '/list',
                templateUrl: 'src/app/hui/backmessage/backMessageList.html',
                controller: 'backMessageController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/backmessage/backMessageController.js');
                    }]
                }
            })
            .state('main.hui.backmessage.detail', {
                url: '/detail?id&source',
                templateUrl: 'src/app/hui/backmessage/backMessageDetail.html',
                controller: 'backMessageDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/backmessage/backMessageDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 设置广告的频率
            .state('main.hui.frequency', {
                url: '/frequency',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 广告频率列表页面
            .state('main.hui.frequency.list', {
                url: '/list',
                templateUrl: 'src/app/hui/frequency/frequencyList.html',
                controller: 'frequencyController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/frequency/frequencyController.js');
                    }]
                }
            })

            // 广告频率添加页面
            .state('main.hui.frequency.create', {
                url: '/create',
                templateUrl: 'src/app/hui/frequency/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/frequency/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 广告频率编辑页面
            .state('main.hui.frequency.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/frequency/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/frequency/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 智子云
            .state('main.zzy', {
                url: '/zzy',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.zzy.zzyReport', {
                url: '/zzyReport',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 智子云报表管理
            .state('main.zzy.zzyReport.list', {
                url: '/list',
                templateUrl: 'src/app/zzy/report/planReport.html',
                controller: 'planReportController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/zzy/report/planReportController.js');
                    }]
                }
            })

            // 创意管理
            .state('main.zzy.creative', {
                url: '/creative',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.zzy.creative.list', {
                url: '/list',
                templateUrl: 'src/app/zzy/creative/creative.html',
                controller: 'creativeController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/zzy/creative/creativeController.js');
                    }]
                }
            })
            .state('main.zzy.creative.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/zzy/creative/creativeDetail.html',
                controller: 'creativeDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/zzy/creative/creativeDetailController.js');
                    }]
                }
            })

            //智子云投放计划
            .state('main.zzy.zzyLaunchPlan', {
                url: '/zzyLaunchPlan',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.zzy.zzyLaunchPlan.list', {
                url: '/list',
                templateUrl: 'src/app/zzy/launchplan/zzyLaunchPlan.html',
                controller: 'zzyLaunchPlanController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/zzy/launchplan/zzyLaunchPlanController.js');
                    }]
                }
            })
            .state('main.zzy.zzyLaunchPlan.planDetail', {
                url: '/detail/{adPlanId}?params',
                templateUrl: 'src/app/zzy/launchplan/zzyLaunchPlanDetail.html',
                controller: 'zzyLaunchPlanDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/zzy/launchplan/zzyLaunchPlanDetailController.js');
                    }]
                }
            })
            .state('main.zzy.zzyLaunchPlan.setTactics', {
                url: '/setTactics/{adPlanId}/{planName}?params',
                templateUrl: 'src/app/zzy/launchplan/setTactics/setTactics.html',
                controller: 'setTacticsController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/zzy/launchplan/setTactics/setTacticsController.js');
                    }]
                }
            })
            .state('main.zzy.zzyPlatform', {
                url: '/zzyPlatform',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 智子云平台
            .state('main.zzy.zzyPlatform.list', {
                url: '/list',
                templateUrl: 'src/app/zzy/zzyPlatform/zzyPlatform.html',
                controller: 'zzyPlatformController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/zzy/zzyPlatform/zzyPlatformController.js');
                    }]
                }
            })
            .state('main.zzy.zzyPlatform.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/zzy/zzyPlatform/zzyPlatformDetail.html',
                controller: 'zzyPlatformDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/zzy/zzyPlatform/zzyPlatformDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.sys.menu.menubtnlist', {
                url: '/menubtnlist/{id}?params',
                templateUrl: 'src/app/sys/menubtn/menubtn.html',
                controller: 'menubtnController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/menubtn/menubtnController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.web', {
                url: '/web',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            }) // 用户
            .state('main.web.affiche', {
                url: '/affiche',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.web.affiche.list', {
                url: '/list',
                templateUrl: 'src/app/sys/web/affiche.html',
                controller: 'afficheController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/web/afficheController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.web.affiche.add', {
                url: '/add',
                templateUrl: 'src/app/sys/web/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/web/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.web.affiche.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/sys/web/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/web/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            //合作申请
            .state('main.web.cooper', {
                url: '/cooper',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 合作申请列表展示
            .state('main.web.cooper.list', {
                url: '/list',
                templateUrl: 'src/app/sys/cooper/cooper.html',
                controller: 'cooperController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/cooper/cooperController.js');
                    }]
                }
            })

            // 合作申请详情
            .state('main.web.cooper.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/sys/cooper/cooperDetail.html',
                controller: 'cooperDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/cooper/cooperDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            //关于我们
            .state('main.web.aboutus', {
                url: '/aboutus',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            //关于我们列表展示
            .state('main.web.aboutus.list', {
                url: '/list',
                templateUrl: 'src/app/sys/aboutUs/aboutUs.html',
                controller: 'aboutUsController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/aboutUs/aboutUsController.js');
                    }]
                }
            })

            //关于我们列表详情
            .state('main.web.aboutus.detail', {
                url: '/detail?{id}&{manageId}',
                templateUrl: 'src/app/sys/aboutUs/aboutUsDetail.html',
                controller: 'aboutUsDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/sys/aboutUs/aboutUsDetailController.js');
                    }]
                }
            })
            //友情链接管理
            .state('main.web.blogroll', {
                url: '/blogroll',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            //友情链接管理表展示
            .state('main.web.blogroll.list', {
                url: '/list',
                templateUrl: 'src/app/websiteManage/blogroll/blogroll.html',
                controller: 'blogrollController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/websiteManage/blogroll/blogrollController.js');
                    }]
                }
            })
            .state('main.web.blogroll.create', {
                url: '/create',
                templateUrl: 'src/app/websiteManage/blogroll/update.html',
                controller: 'blogrollUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/websiteManage/blogroll/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.web.blogroll.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/websiteManage/blogroll/update.html',
                controller: 'blogrollUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/websiteManage/blogroll/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            //覆盖媒体管理
            .state('main.web.overMedia', {
                url: '/overMedia',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            //友情链接管理表展示
            .state('main.web.overMedia.list', {
                url: '/list',
                templateUrl: 'src/app/websiteManage/overMedia/overMedia.html',
                controller: 'overMediaController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/websiteManage/overMedia/overMediaController.js');
                    }]
                }
            })
            .state('main.web.overMedia.create', {
                url: '/create',
                templateUrl: 'src/app/websiteManage/overMedia/update.html',
                controller: 'overMediaUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/websiteManage/overMedia/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.web.overMedia.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/websiteManage/overMedia/update.html',
                controller: 'overMediaUpdateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/websiteManage/overMedia/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            // 资讯消息管理
            .state('main.plat.messagePlat', {
                url: '/messagePlat',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 资讯消息管理列表展示
            .state('main.plat.messagePlat.list', {
                url: '/list',
                templateUrl: 'src/app/hui/platInfoManage/messagePlat/messagePlat.html',
                controller: 'messagePlatController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platInfoManage/messagePlat/messagePlatController.js');
                    }]
                }
            })
            .state('main.plat.messagePlat.add', {
                url: '/add',
                templateUrl: 'src/app/hui/platInfoManage/messagePlat/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platInfoManage/messagePlat/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.plat.messagePlat.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/platInfoManage/messagePlat/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platInfoManage/messagePlat/updateController.js');
                    }]
                }
            })
            .state('main.plat.messagePlat.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/hui/platInfoManage/messagePlat/detail.html',
                controller: 'detailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platInfoManage/messagePlat/detailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            // 社区管理
            // 社区用户管理
            .state('main.forum', {
                url: '/forum',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 社区用户管理
            .state('main.forum.usermanagement', {
                url: '/community',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 社区用户管理列表
            .state('main.forum.usermanagement.list', {
                url: '/list',
                templateUrl: 'src/app/hui/community/userList.html',
                controller: 'communityController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/communityController.js');
                    }]
                }
            })

            // 发帖管理
            .state('main.forum.forumPost', {
                url: '/forumPost',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 发帖管理列表
            .state('main.forum.forumPost.list', {
                url: '/list',
                templateUrl: 'src/app/hui/community/forumPostManage/forumPost.html',
                controller: 'forumPostController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/forumPostManage/forumPostController.js');
                    }]
                }
            })

            // 投诉类型配置
            .state('main.communityConfig.reportconfig', {
                url: '/reportconfig',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 投诉类型列表
            .state('main.communityConfig.reportconfig.list', {
                url: '/list',
                templateUrl: 'src/app/hui/reportconfig/reportconfigList.html',
                controller: 'reportconfigController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/reportconfig/reportconfigController.js');
                    }]
                }
            })
            // 投诉类型修改
            .state('main.communityConfig.reportconfig.update', {
                url: '/detail/{reportNo}?params',
                templateUrl: 'src/app/hui/reportconfig/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/reportconfig/updateController.js');
                    }]
                }
            })

            // 投诉类型添加
            .state('main.communityConfig.reportconfig.create', {
                url: '/create',
                templateUrl: 'src/app/hui/reportconfig/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/reportconfig/updateController.js');
                    }]
                }
            })

            // 标签配置 communityConfig.reportconfig
            .state('main.communityConfig.label', {
                url: '/label',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 标签列表
            .state('main.communityConfig.label.list', {
                url: '/list',
                templateUrl: 'src/app/hui/label/labelList.html',
                controller: 'labelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/label/labelController.js');
                    }]
                }
            })

            // 标签修改
            .state('main.communityConfig.label.update', {
                url: '/detail/{labelNo}?params',
                templateUrl: 'src/app/hui/label/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/label/updateController.js');
                    }]
                }
            })

            // 标签添加
            .state('main.communityConfig.label.create', {
                url: '/create',
                templateUrl: 'src/app/hui/label/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/label/updateController.js');
                    }]
                }
            })

            // 热帖统计
            .state('main.communityCount.hotpost', {
                url: '/hotpost',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 热帖列表
            .state('main.communityCount.hotpost.list', {
                url: '/list',
                templateUrl: 'src/app/hui/hotpost/hotpostList.html',
                controller: 'labelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/hotpost/hotpostController.js');
                    }]
                }
            })
            // 跟帖管理
            .state('main.forum.forumFollowPost', {
                url: '/forumFollowPost',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 跟帖管理列表
            .state('main.forum.forumFollowPost.list', {
                url: '/list',
                templateUrl: 'src/app/hui/community/forumFollowPostManage/forumFollowPost.html',
                controller: 'forumFollowPostController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/forumFollowPostManage/forumFollowPostController.js');
                    }]
                }
            })

            // 关注数前100用户统计
            .state('main.communityCount.forumAttentionPerson', {
                url: '/forumAttentionPerson',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 关注数前100用户列表
            .state('main.communityCount.forumAttentionPerson.list', {
                url: '/list',
                templateUrl: 'src/app/hui/forumAttentionPerson/forumAttentionPersonList.html',
                controller: 'forumAttentionPersonController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/forumAttentionPerson/forumAttentionPersonController.js');
                    }]
                }
            })

            // 我的频道管理
            .state('main.forum.myChannel', {
                url: '/myChannel',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 频道列表
            .state('main.forum.myChannel.list', {
                url: '/list',
                templateUrl: 'src/app/hui/myChannel/myChannelList.html',
                controller: 'myChannelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/myChannel/myChannelController.js');
                    }]
                }
            })

            // 频道修改
            .state('main.forum.myChannel.update', {
                url: '/update/{myChannelId}?params',
                templateUrl: 'src/app/hui/myChannel/myChannelUpdate.html',
                controller: 'updateMyChannelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/myChannel/updateMyChannelController.js');
                    }]
                }
            })

            // 评论及回复管理
            .state('main.forum.forumCommentReply', {
                url: '/forumCommentReply',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 评论及回复管理列表
            .state('main.forum.forumCommentReply.list', {
                url: '/list',
                templateUrl: 'src/app/hui/community/forumCommentReplyManage/forumCommentReply.html',
                controller: 'forumCommentReplyController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/forumCommentReplyManage/forumCommentReplyController.js');
                    }]
                }
            })

            // 社区配置
            .state('main.communityConfig', {
                url: '/communityConfig',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 敏感词配置管理
            .state('main.communityConfig.sensitiveWord', {
                url: '/sensitiveWord',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 敏感词配置管理页面列表展示
            .state('main.communityConfig.sensitiveWord.list', {
                url: '/list',
                templateUrl: 'src/app/hui/community/sensitiveWord/sensitiveWord.html',
                controller: 'sensitiveWordController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/sensitiveWord/sensitiveWordController.js');
                    }]
                }
            })

            // 敏感词配置管理页面列表修改
            .state('main.communityConfig.sensitiveWord.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/community/sensitiveWord/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/sensitiveWord/updateController.js');
                    }]
                }
            })
            // 敏感词配置管理页面列表添加
            .state('main.communityConfig.sensitiveWord.add', {
                url: '/add',
                templateUrl: 'src/app/hui/community/sensitiveWord/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/sensitiveWord/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            //热搜词配置
            .state('main.communityConfig.hotSearch', {
                url: '/hotSearch',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 热搜词配置管理页面列表展示
            .state('main.communityConfig.hotSearch.list', {
                url: '/list',
                templateUrl: 'src/app/hui/point/hotSearchConfig/hotSearch.html',
                controller: 'hotSearchController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/hotSearchConfig/hotSearchController.js');
                    }]
                }
            })
            //添加热搜词汇
            .state('main.communityConfig.hotSearch.add', {
                url: '/add',
                templateUrl: 'src/app/hui/point/hotSearchConfig/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/hotSearchConfig/updateController.js');
                    }]
                }
            })
            //修改热搜词汇
            .state('main.communityConfig.hotSearch.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/point/hotSearchConfig/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/hotSearchConfig/updateController.js');
                    }]
                }
            })

            //帖子阅读量参数配置
            .state('main.communityConfig.postReadCountConfig', {
                url: '/postReadCountConfig',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            // 帖子阅读量参数配置列表展示
            .state('main.communityConfig.postReadCountConfig.list', {
                url: '/list',
                templateUrl: 'src/app/hui/postReadConfig/readCountconfig.html',
                controller: 'readCountConfigController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/postReadConfig/readCountConfigController.js');
                    }]
                }
            })




            // 举报管理
            .state('main.forum.report', {
                url: '/report',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 举报管理页面列表展示
            .state('main.forum.report.list', {
                url: '/list',
                templateUrl: 'src/app/hui/community/reportManage/report.html',
                controller: 'reportController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/reportManage/reportController.js');
                    }]
                }
            })
            //社区管理 任务审核
            .state('main.forum.task', {
                url: '/task',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.forum.task.list', {
                url: '/list',
                templateUrl: 'src/app/hui/postTask/postTaskList.html',
                controller: 'postTaskController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/postTask/postTaskController.js');
                    }]
                }
            })
            .state('main.forum.task.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/hui/postTask/postTaskDetail.html',
                controller: 'postTaskDetailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/postTask/postTaskDetailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            //社区数据统计
            .state('main.communityCount', {
                url: '/communityCount',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            //社区帖子统计图
            .state('main.communityCount.channel', {
                url: '/channelCount',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.communityCount.channel.addlist', {
                url: '/addlist',
                templateUrl: 'src/app/hui/communityCount/channelCount/channelCount.html',
                controller: 'channelCountController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/communityCount/channelCount/channelCountController.js');
                    }]
                }
            })

            //点击统计
            .state('main.communityCount.clickCount', {
                url: '/clickCount',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.communityCount.clickCount.list', {
                url: '/list',
                templateUrl: 'src/app/hui/clickCount/clickCount.html',
                controller: 'clickCountController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/clickCount/clickCountController.js');
                    }]
                }
            })
            //资讯平台数据统计
            .state('main.platformCount', {
                url: '/platinfoCount',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.platformCount.subscribecount', {
                url: '/platSubscribeCount',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.platformCount.subscribecount.Subscribelist', {
                url: '/Subscribelist',
                templateUrl: 'src/app/hui/platinfoCount/platSubscribeCount/platSubscribeCount.html',
                controller: 'platSubscribeCountController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platinfoCount/platSubscribeCount/platSubscribeCountController.js');
                    }]
                }
            })

            // 各资讯平台新增、取消订阅数及趋势
            .state('main.platformCount.platAddOrCancelCount', {
                url: '/platSubscribeCount',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.platformCount.platAddOrCancelCount.list', {
                url: '/list',
                templateUrl: 'src/app/hui/platinfoCount/platSubscribeCount/platAddOrCancelCount.html',
                controller: 'platAddOrCancelCountController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/platinfoCount/platSubscribeCount/platAddOrCancelCountController.js');
                    }]
                }
            })

            // 频道管理 forum.reportconfig
            .state('main.communityConfig.channel', {
                url: '/channel',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 频道列表
            .state('main.communityConfig.channel.list', {
                url: '/list',
                templateUrl: 'src/app/hui/channel/channelList.html',
                controller: 'communitychannelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/channel/channelController.js');
                    }]
                }
            })

            // 频道修改
            .state('main.communityConfig.channel.update', {
                url: '/update/{channelNo}?params',
                templateUrl: 'src/app/hui/channel/channelUpdate.html',
                controller: 'updateChannelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/channel/updateChannelController.js');
                    }]
                }
            })
            // 频道添加
            .state('main.communityConfig.channel.create', {
                url: '/create',
                templateUrl: 'src/app/hui/channel/channelUpdate.html',
                controller: 'updateChannelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/channel/updateChannelController.js');
                    }]
                }
            })

            // 发帖审核人管理
            .state('main.communityConfig.forumPostCheck', {
                url: '/forumPostCheck',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 发帖审核人管理列表
            .state('main.communityConfig.forumPostCheck.list', {
                url: '/list',
                templateUrl: 'src/app/hui/community/forumPostCheck/forumPostCheck.html',
                controller: 'forumPostCheckController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/forumPostCheck/forumPostCheckController.js');
                    }]
                }
            })
            .state('main.communityConfig.forumPostCheck.add', {
                url: '/add',
                templateUrl: 'src/app/hui/community/forumPostCheck/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/forumPostCheck/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.communityConfig.forumPostCheck.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/community/forumPostCheck/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/community/forumPostCheck/updateController.js');
                    }]
                }
            })
            //工具箱
            .state('main.toolChest', {
                url: '/toolChest',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            //媒体大全管理
            .state('main.toolChest.media', {
                url: '/media',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            //媒体大全管理
            .state('main.toolChest.media.list', {
                url: '/list',
                templateUrl: 'src/app/toolChest/media/media.html',
                controller: 'mediaController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/media/mediaController.js');
                    }]
                }
            })
            .state('main.toolChest.media.create', {
                url: '/create',
                templateUrl: 'src/app/toolChest/media/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/media/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.toolChest.media.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/toolChest/media/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/media/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.toolChest.scenes', {
                url: '/scenesPackage',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.toolChest.scenes.readList', {
                url: '/readPlanList',
                templateUrl: 'src/app/toolChest/scenes/scenes.html',
                controller: 'scenesController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/scenes/scenesController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.toolChest.scenes.addScenes', {
                url: '/readPlanList',
                templateUrl: 'src/app/toolChest/scenes/addScenes.html',
                controller: 'addScenesController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/scenes/addScenesController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.toolChest.scenes.updateScenes', {
                url: '/readPlanList/{id}&{scenesType}?params',
                templateUrl: 'src/app/toolChest/scenes/updateScenes.html',
                controller: 'updateScenesController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/scenes/updateScenesController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.toolChest.scenes.copyScenes', {
                url: '/readPlanList/{id}?params',
                templateUrl: 'src/app/toolChest/scenes/copyScenes.html',
                controller: 'copyScenesController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/scenes/copyScenesController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            .state('main.toolChest.excel', {
                url: '/excel',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            // 导入Excel
            .state('main.toolChest.excel.import', {
                url: '/import',
                templateUrl: 'src/app/biz/toolManage/importExcel.html',
                controller: 'importController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/biz/toolManage/importExcelController.js');
                    }]
                }
            })

            //H5落地页
            .state('main.toolChest.loadPage', {
                url: '/loadPage',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            .state('main.toolChest.loadPage.list', {
                url: '/list',
                templateUrl: 'src/app/toolChest/loadPage/loadPage.html',
                controller: 'loadPageController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/loadPage/loadPageController.js');
                    }]
                }
            })

            .state('main.toolChest.loadPage.save', {
                url: '/list',
                templateUrl: 'src/app/toolChest/loadPage/edLadingPage/edLadingPage.html',
                controller: 'edLadingPageController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/loadPage/edLadingPage/edLadingPageController.js');
                    }]
                }
            })

            .state('main.toolChest.loadPage.update', {
                url: '/list/{pageLoadId}?params',
                templateUrl: 'src/app/toolChest/loadPage/edLadingPage/edLadingPage.html',
                controller: 'edLadingPageController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/loadPage/edLadingPage/edLadingPageController.js');
                    }]
                }
            })

            .state('main.toolChest.loadPage.model', {
                url: '/list',
                templateUrl: 'src/app/toolChest/loadPage/loadPageModel.html',
                controller: 'loadPageModelController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/toolChest/loadPage/loadPageModelController.js');
                    }]
                }
            })
            
            // 商城商品管理
            .state('main.point', {
                url: '/point',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.point.productInfo', {
                url: '/productInfo',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.point.productInfo.list', {
                url: '/list',
                templateUrl: 'src/app/hui/point/productManage/productInfo.html',
                controller: 'productInfoController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/productManage/productInfoController.js');
                    }]
                }
            })
            
            .state('main.point.productInfo.add', {
                url: '/add',
                templateUrl: 'src/app/hui/point/productManage/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/productManage/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
            .state('main.point.productInfo.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/point/productManage/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/productManage/updateController.js');
                    }]
                }
            })
            .state('main.point.productInfo.detail', {
                url: '/detail/{id}?params',
                templateUrl: 'src/app/hui/point/productManage/detail.html',
                controller: 'detailController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/productManage/detailController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })

            //头条设置  main.headlines.notice.basic
            .state('main.headlines', {
                url: '/headlines',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            //头条基本设置
            .state('main.headlines.noticeBasic', {
                url: '/notice',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            //基本设置
            .state('main.headlines.noticeBasic.basic', {
                url: '/basic',
                templateUrl: 'src/app/hui/point/headlinesBasic/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/headlinesBasic/updateController.js').then(function () {
                            return $ocLazyLoad.load('toaster');
                        });
                    }]
                }
            })
             //头条设置
            .state('main.headlines.notice', {
                url: '/notice',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
             //头条内容列表
             .state('main.headlines.notice.list', {
                    url: '/list',
                    templateUrl: 'src/app/hui/point/headlines/headlines.html',
                    controller: 'headlinesController',
                    resolve: {
                        deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                            return uiLoad.load('src/app/hui/point/headlines/headlinesController.js').then(function () {
                                return $ocLazyLoad.load('toaster');
                            });
                        }]
                    }
                })
                  //修改头条内容
             .state('main.headlines.notice.update', {
                    url: '/update/{noticeNo}?params',
                    templateUrl: 'src/app/hui/point/headlines/update.html',
                    controller: 'updateController',
                    resolve: {
                        deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                            return uiLoad.load('src/app/hui/point/headlines/updateController.js').then(function () {
                                return $ocLazyLoad.load('toaster');
                            });
                        }]
                    }
                })
                   //添加头条内容
             .state('main.headlines.notice.add', {
                    url: '/add',
                    templateUrl: 'src/app/hui/point/headlines/update.html',
                    controller: 'updateController',
                    resolve: {
                        deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                            return uiLoad.load('src/app/hui/point/headlines/updateController.js').then(function () {
                                return $ocLazyLoad.load('toaster');
                            });
                        }]
                    }
                })

            //商品分类配置
            .state('main.point.productCategory', {
                url: '/productCategory',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })

            .state('main.point.productCategory.list', {
            url: '/list',
            templateUrl: 'src/app/hui/point/productCategory/category.html',
            controller: 'categoryController',
            resolve: {
                deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                    return uiLoad.load('src/app/hui/point/productCategory/categoryController.js');
                }]
              }
            })

            .state('main.point.productCategory.add', {
                url: '/add',
                templateUrl: 'src/app/hui/point/productCategory/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/productCategory/updateController.js');
                    }]
                }
            })
            .state('main.point.productCategory.update', {
                url: '/update/{id}?params',
                templateUrl: 'src/app/hui/point/productCategory/update.html',
                controller: 'updateController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/point/productCategory/updateController.js');
                    }]
                }
            })




            // 相关推荐设置
            .state('main.post', {
                url: '/post',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.post.postRecomment', {
                url: '/postRecomment',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.post.postRecomment.list', {
                url: '/list',
                templateUrl: 'src/app/hui/postRecomment/postReCommentList.html',
                controller: 'postReCommentController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/postRecomment/postReCommentController.js');
                    }]
                }
            })

            // 积分商城订单 管理point.orderInfo.list

            .state('main.point.orderInfo', {
                url: '/orderInfo',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.point.orderInfo.list', {
                url: '/list',
                templateUrl: 'src/app/hui/pointOrderInfo/pointOrderInfoList.html',
                controller: 'pointOrderInfoController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/pointOrderInfo/pointOrderInfoController.js');
                    }]
                }
            })


            .state('main.forum.readCount', {
                url: '/readCount',
                template: '<div ui-view class="fade-in-right-big smooth"></div>'
            })
            .state('main.forum.readCount.list', {
                url: '/list',
                templateUrl: 'src/app/hui/channelNoRead/channelNoReadList.html',
                controller: 'channelNoReadController',
                resolve: {
                    deps: ['uiLoad', '$ocLazyLoad', function (uiLoad, $ocLazyLoad) {
                        return uiLoad.load('src/app/hui/channelNoRead/channelNoReadController.js');
                    }]
                }
            })

        ;
    }])
    .controller("navCtrl", function ($rootScope, $state, $scope) {
        $.ajax({
            url: $scope.app.project_name + '/user/read/current',
            success: function (result) {
                if (result.httpCode == 200) {
                    $rootScope.userInfo = result.user;
                    $rootScope.menuList = result.menus;
                    if (result.user.userType == 4) {
                        $rootScope.finishCount = result.finishCount;
                        $rootScope.unFinishCount = result.unFinishCount;
                        $rootScope.beanlist = result.beanlist;
                        $rootScope.allBeanlist = result.allBeanlist;
                        // $rootScope.platformCountBeanList = result.platformCountBeanList;
                        // $rootScope.CourierStationCountBeanList = result.CourierStationCountBeanList;
                        // $rootScope.firePostCountBeanList = result.firePostCountBeanList;
                    }
                    $rootScope.$apply();
                }
            }
        });
    })
    .run(['$rootScope', '$state', '$stateParams', '$timeout', '$templateCache',
        function ($rootScope, $state, $stateParams, $timeout, $templateCache) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
            $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
                var from = fromState.name, to = toState.name;
                if (from && to) { // 解决 相应模块从列表进入编辑后 状态丢失问题
                    var s1 = from.substring(0, from.lastIndexOf(".")),
                        g1 = from.substring(from.lastIndexOf(".") + 1),
                        s2 = to.substring(0, to.lastIndexOf(".")),
                        g2 = to.substring(to.lastIndexOf(".") + 1);
                    if (s1 == s2) {
                        if (g1 == 'list' && (g2 == 'update' || g2 == 'view')) { //进行编辑
                            toParams['params'] = window.location.hash;
                        }
                        //返回列表
                        if ((g1 == "update" || g1 == 'view') && g2 == 'list') {
                            var h = fromParams['params'];
                            if (h) {
                                $timeout(function () {
                                    window.location.hash = h;
                                });
                            }
                        }
                    }
                }
            });
        }
    ]);